import { defineStore } from "pinia";
import { ref } from "vue";

export const useLayout = defineStore('layout', () => {
    const loadingMapping = ref<Record<string, boolean>>({});
    return {
        loadingMapping,
        setLoadingState(key: string, state: boolean) {
            loadingMapping.value[key] = state;
        }
    }
})
